<%--
说明：资源组下资源信息表

@author zhangxing 2012-10-12
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />

<title>资源信息列表</title>
<script type="text/javascript">
var opeForm;
var grid;

$(function(){
	opeForm = $('#opeForm');
	
	grid=$('#listTable').datagrid({
		columns:[[
		          
		    {title:'资源名称',field:'rsc_name',align:'center',width:150},

            {title:'管理IP',field:'manage_ip',align:'center',width:80},

            {title:'服务IP',field:'service_ip',align:'center',width:80},

            {title:'资源状态',field:'rsc_status_decode',align:'center',width:80},

            {title:'资源类型',field:'rsc_type_decode',align:'center',width:100},

            {title:'管理账号',field:'manage_acc',align:'center',width:80}

        ]],
		pagination:true,
		singleSelect: false
	});

	queryOperation();

});

//翻页时自动调用此函数
function onLoadPrev(msg){
	var queryParams=grid.datagrid('options').queryParams;
	queryParams['firstQuery']=false;
}

//查询操作
function queryOperation(){
	var params = opeForm.serializeObject();
	grid.datagrid("options").pageNumber = 1;
	grid.datagrid({
		url: 'C_RSC!resList.do',
		queryParams: jQuery.extend({}, params, {'firstQuery': true})
	});
}

</script>
</head>
<body class="easyui-layout">
<form id="opeForm" name="opeForm">
<input type="hidden" name="model.rsc_grp_id" value="${model.rsc_grp_id }"/>
</form>
<div region="center" border="false">
	<table id="listTable"></table>
</div>
</body>
</html>
